<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>用户登录</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="stylesheet" href="/css/bootstrap.min.css" />
        <link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="/css/bslogin.css" />
    </head>
    <body>
        <div id="logo">
            <!--img src="/img/logo.png" alt="" /-->
        </div>
        <div id="loginbox">            
            <form id="loginform" class="form-vertical" action="<?php echo url('/auth/login');?>?return=<?php echo Request::input('return'); ?>" method="post"/>
            <div class="form-actions">
                <p>用户登录</p>
            </div>
            <div class="control-group">
                <div class="input-prepend">
                    <span class="add-on"><i class="icon-user"></i></span><input type="text" name="email" placeholder="请输入Email" required="required" value="<?php echo  old('email');?>" class="check-txt"/>
                </div>
            </div>
            <div class="control-group"> 
                <div class="input-prepend">
                    <span class="add-on"><i class="icon-lock"></i></span><input type="password" name="password" placeholder="请输入密码" required="required" class="check-txt"/>
                </div>
            </div>
            <div class="form-actions paddingtp-none border-btm-none">
                <div class="input-prepend padding-none">
                    <span class="pull-left"><span class="add-on"><i class="icon-font"></i></span><input type="text" name="img" class="check-txt" placeholder="请输入验证码" required="required"/></span>
                    <span class="pull-right"><img src="/captcha" /></span>
                </div>
            </div>
            <div class="control-group">
                <div class="input-prepend">
                    <button class="btn btn-primary" type="submit" value>登录</button>
                </div>
            </div>
            <?php if(Session::has('error')):?>
            <p class="danger-red"><?php echo Session::pull('error');?></p>
            <?php endif;?>
        </form>
    </div>

    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script>
$(function () {
    $("#loginbox").on("click", ".btn-primary", function () {
        //$("#loginbox .danger-red").toggleClass("hidden");
    })
})
    </script>
</body>
</html>
